/**
 * @author trex279
 */

var timeInterval = readPreference("Frequency");//5*60*1000; //every 5 minutes
if(!timeInterval){
	timeInterval = 5*60*1000; //in case xml file read fails
}
else{
	timeInterval*=60*1000; //to convert to milliseconds
}
var userName_g = "";
var isLoggedin = false;
var loadingStartEvent = new air.Event('loadingStart',false,false);
var loadingCompleteEvent = new air.Event('loadingComplete',false,false);
var loadingErrorEvent = new air.Event('loadingError',false,false);
var thisApplication = {};
thisApplication.sessions = {};